﻿using System.Collections;
using System.Collections.Generic;
using Framework.MVC.Model;
using UnityEngine;

public class test : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        var a = new ModelBase(new Dictionary<string, object>()
        {
            {"name","zhangsan"}    
        });
        a.ListenPropChgAndCal<string>("name",this.call);
        a.SetProp<string>("name","lisi");
        a.RemovePropListen<string>("name",this.call);
    }

    // Update is called once per frame
    void Update()
    {
        
    }


    void call(string name){
        Debug.Log("nam->e" + name);
    }

    void testFunc1(object obj){
        Debug.Log(obj);
    }
    
}
